package org.wdcode.shop.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.shop.cache.RevertWordCache;
import org.wdcode.shop.po.RevertWord;

/**
 * 回复留言相关业务助手类 可操作缓存
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-23
 */
public final class RevertWordHelper extends BaseEntityCacheHelper<RevertWordCache, RevertWord> {
	// 回复留言助手
	private static RevertWordHelper	helper;

	/**
	 * 实例化一个对象
	 */
	public RevertWord newInstance() {
		return new RevertWord();
	}

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<RevertWord> getEntityClass() {
		return RevertWord.class;
	}

	/**
	 * 获得回复留言助手
	 * @return 回复留言助手
	 */
	public static RevertWordHelper getHelper() {
		return helper;
	}

	/**
	 * 设置回复留言助手
	 * @param helper 回复留言助手
	 */
	public void setHelper(RevertWordHelper helper) {
		RevertWordHelper.helper = helper;
	}
}
